package 第5章多线程编程作业.Work1.Work3;

public class Vip implements Runnable {

    public void run() {

        for (int i = 1; i <11 ; i++) {
            System.out.println(Thread.currentThread().getName()+":"+i+"号病人在看病");

            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
